﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="showOrder.aspx.cs" Inherits="WorkOrder.showOrder" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>工单详细信息_工单管理支持系统</title>
    <link href="../css/left.css" type="text/css" rel="STYLESHEET" />
    <link href="../css/site2.css" type="text/css" rel="STYLESHEET" />
    <link rel="stylesheet" type="text/css" href="../css/subModal.css" />
    <script type="text/javascript" src="../js/common.js" defer="defer"></script>
    <script type="text/javascript" src="../js/subModal.js" defer="defer"></script>
    <script type="text/javascript" src="../js/cookie.js" defer="defer"></script>
    <script type="text/javascript" src="../DatePicker/WdatePicker.js" defer="defer"></script>
    <script language="javascript" type="text/javascript">        //加在head中，PNG无灰色背景
        var tmp = window.navigator.userAgent.toLowerCase().indexOf("MSIE");
        //加在head中，PNG无灰色背景
        function correctPNG() {
            for (var i = 0; i < document.images.length; i++) {
                var img = document.images[i];
                var imgName = img.src.toUpperCase();
                if (imgName.substring(imgName.length - 3, imgName.length) == "PNG") {
                    var imgID = (img.id) ? "id='" + img.id + "' " : "";
                    var imgClass = (img.className) ? "class='" + img.className + "' " : "";
                    var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
                    var imgStyle = "display:inline-block;" + img.style.cssText;
                    if (img.align == "left") imgStyle = "float:left;" + imgStyle;
                    if (img.align == "right") imgStyle = "float:right;" + imgStyle;
                    if (tmp >= 1) {
                        if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
                    }
                    else {
                        if (img.parentNode.href) imgStyle = "cursor:hand;" + imgStyle;
                    }
                    var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
       + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>";
                    img.outerHTML = strNewHTML;

                }
            }
        }

        if (window.addEventListener) {
            window.addEventListener('DOMContentLoaded', correctPNG, false);   //firefox
            window.addEventListener('load', correctPNG, false);
        } else if (window.attachEvent) {
            window.attachEvent('onload', correctPNG);  //IE
        }
    </script>
    <script type="text/javascript">
        String.prototype.trim = function () {
            // 用正则表达式将前后空格，用空字符串替代。
            return this.replace(/(^\s*)|(\s*$)/g, "");
        }

        function ShowPopup(alable, tmp, strurl) {
            //rowIndex(alable.parentElement.parentElement.rowIndex);
            var id = document.getElementById("hidID").value;
            if (id != "") {
                if (tmp == 1) showPopWin("修改工单信息", "addWorkOrder.aspx?a=1&id=" + id, 850, 368, null, true, false);
                else if (tmp == 3) showPopWin("新增工单问题", "addException.aspx?a=0&id=" + id, 450, 200, null, true, false);

            }
        }

        function ShowDiv1() {
            if (document.getElementById("div1").style.display == "none")
                document.getElementById("div1").style.display = "block";
            else if (document.getElementById("div1").style.display == "block")
                document.getElementById("div1").style.display = "none";
        }
        function ShowDiv2() {
            if (document.getElementById("div2").style.display == "none")
                document.getElementById("div2").style.display = "block";
            else if (document.getElementById("div2").style.display == "block")
                document.getElementById("div2").style.display = "none";
        }
        function ShowDiv3() {
            if (document.getElementById("div3").style.display == "none")
                document.getElementById("div3").style.display = "block";
            else if (document.getElementById("div3").style.display == "block")
                document.getElementById("div3").style.display = "none";
        }
    </script>
    <style type="text/css">
        .style7
        {
        }
        .style8
        {
            height: 24px;
        }
        #tab1
        {
            border-collapse: collapse;
        }
        #tab1 td
        {
            border: #9fd6ff 1px solid;
        }
        .style9
        {
            height: 24px;
            width: 123px;
        }
        .style10
        {
            width: 213px;
        }
        .style11
        {
            width: 158px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <input type="hidden" id="hidTown" runat="server" />
    <input type="hidden" id="hidOrderID" runat="server" />
    <input type="hidden" id="hidID" runat="server" />
    <div>
        <div style="border: solid 1px #9fd6ff; background-color: #d4f1f9;">
            <table style="width: 100%; cursor: pointer;" onclick="ShowDiv1();">
                <tr>
                    <td style="height: 20px;">
                        &nbsp;&nbsp;<img alt="" align="absmiddle" src="../images/181.gif" />&nbsp; 工单详细信息
                    </td>
                </tr>
            </table>
        </div>
        <div id="div1" style="border: solid 1px #9fd6ff; border-top: none; background-color: #f0f8ff;
            display: block;">
            <table style="width: 730px">
                <tr>
                    <td style="width: 10px;">
                    </td>
                    <td>
                        <table border="0" style="width: 100%; font-family: Arial;">
                            <tr>
                                <td class="style8" colspan="4">
                                    <img align="absmiddle" src="../images/drop-add.gif" /><a href="#" id="A3" onclick="ShowPopup(this,1,'');"><span
                                        style="border: 1px; border-bottom: solid 1px #008000">修改工单信息</span></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <img align="absmiddle" src="../images/Flag.gif" width="20px" height="20px" /><asp:LinkButton
                                        ID="LinkButton2" runat="server" OnClick="LinkButton1_Click">刷新</asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                        <table id="tab1" style="width: 100%; font-family: Arial;">
                            <tr style="background-color: #e4e6ed">
                                <td align="left" class="style9">
                                    工单号：
                                </td>
                                <td align="left" class="style10">
                                    <asp:Label ID="lblOrderNo" runat="server" Text=""></asp:Label>
                                </td>
                                <td align="left" class="style11">
                                    集团编码：
                                </td>
                                <td align="left">
                                    <asp:Label ID="lblGroupCode" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="height: 24px">
                                    用户编码：
                                </td>
                                <td>
                                    <asp:Label ID="lblCustomerCode" runat="server" Text=""></asp:Label>
                                </td>
                                <td>
                                    所属聚类客户：
                                </td>
                                <td>
                                    <asp:Label ID="lblClustering_client" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" class="style9">
                                    工单主题：
                                </td>
                                <td align="left" class="style7" colspan="3">
                                    <asp:Label ID="lblTitle" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr style="background-color: #e4e6ed">
                                <td align="left" class="style9">
                                    业务类型：
                                </td>
                                <td align="left" class="style10">
                                    <asp:Label ID="lblProduct" runat="server" Text=""></asp:Label>&nbsp;&nbsp;
                                    <asp:Label ID="lblOrderType" runat="server" Text=""></asp:Label>
                                </td>
                                <td align="left" class="style11">
                                    区域：
                                </td>
                                <td align="left">
                                    <asp:Label ID="lblArea" runat="server" Text=""></asp:Label>&nbsp;&nbsp;
                                    <asp:Label ID="lblTown" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" class="style9">
                                    工单内容：
                                </td>
                                <td align="left" colspan="3">
                                    <asp:Label ID="lblModify_content" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr style="background-color: #e4e6ed">
                                <td align="left" class="style9">
                                    &nbsp;备注：
                                </td>
                                <td align="left" class="style7" colspan="3">
                                    <asp:Label ID="lblRemark" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" class="style9">
                                    接入方式：
                                </td>
                                <td align="left" class="style10">
                                    <asp:Label ID="lblAccessMode" runat="server" Text=""></asp:Label>
                                </td>
                                <td>
                                    派单时间：
                                </td>
                                <td>
                                    <asp:Label ID="lblPtime" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr style="background-color: #e4e6ed">
                                <td align="left" class="style9">
                                    签收人：
                                </td>
                                <td align="left" class="style10">
                                    <asp:Label ID="lblCreator" runat="server" Text=""></asp:Label>
                                </td>
                                <td align="left" class="style11">
                                    签收时间：
                                </td>
                                <td align="left">
                                    <asp:Label ID="lblCreateTime" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" class="style9">
                                    需求分析和资源预占：
                                </td>
                                <td align="left" class="style10">
                                    <asp:Label ID="lblAnalysis_time" runat="server" Text=""></asp:Label>
                                </td>
                                <td align="left" class="style11">
                                    CRM资源预占确认：
                                </td>
                                <td align="left">
                                    <asp:Label ID="lblConfirm_time" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr style="background-color: #e4e6ed">
                                <td align="left" class="style9">
                                    审核方案：
                                </td>
                                <td align="left" class="style10">
                                    <asp:Label ID="lblAudit_time" runat="server" Text=""></asp:Label>
                                </td>
                                <td align="left" class="style11">
                                    数据和资源配置：
                                </td>
                                <td align="left">
                                    <asp:Label ID="lblConfig_time" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" class="style9">
                                    完成时间（实施业务测试）：
                                </td>
                                <td align="left" class="style10">
                                    <asp:Label ID="lblFinishTime" runat="server" Text=""></asp:Label>
                                </td>
                                <td align="left" class="style11">
                                    
                                </td>
                                <td align="left">
                                    
                                </td>
                            </tr>
                            <tr style="background-color: #e4e6ed">
                                <td align="left" class="style9">
                                    是否退单：
                                </td>
                                <td align="left" class="style10">
                                    <asp:Label ID="lblIsBack" runat="server" Text=""></asp:Label>
                                </td>
                                <td align="left" class="style11">
                                    退单原因：
                                </td>
                                <td align="left">
                                    <asp:Label ID="lblReasonType" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" class="style9">
                                    退单描述：
                                </td>
                                <td align="left" class="style10" colspan="3">
                                    <asp:Label ID="lblReasonComment" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <br />
        </div>
        <div style="border: solid 1px #9fd6ff; background-color: #d4f1f9; border-bottom: none;">
            <table style="width: 100%; cursor: pointer;" onclick="ShowDiv2();">
                <tr>
                    <td style="height: 20px;">
                        &nbsp;&nbsp;<img alt="" align="absmiddle" src="../images/181.gif" />&nbsp; 操作记录
                    </td>
                </tr>
            </table>
        </div>
        <div id="div2" style="border: solid 1px #9fd6ff; background-color: #f0f8ff; display: block;">
            <table width="100%">
                <tr>
                    <td style="width: 10px;">
                    </td>
                    <td>
                        <div id="gv" style="border: solid 0px #9fd6ff; overflow: auto; width: 100%">
                            <br />
                            <asp:GridView ID="GridView1" runat="server" CssClass="Table" AutoGenerateColumns="False"
                                EmptyDataText="[没有操作记录]" OnRowDataBound="gvReport_RowDataBound">
                                <Columns>
                                    <asp:BoundField DataField="order_number" HeaderText="工单号" ReadOnly="True">
                                        <HeaderStyle CssClass="gridtitle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="process" HeaderText="子单" ReadOnly="True">
                                        <HeaderStyle CssClass="gridtitle" />
                                        <ItemStyle Width="100px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="order_status" HeaderText="工单状态" ReadOnly="True">
                                        <HeaderStyle CssClass="gridtitle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="current_owner" HeaderText="当前责任人" ReadOnly="True">
                                        <HeaderStyle CssClass="gridtitle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="create_department" HeaderText="创建部门" ReadOnly="True">
                                        <HeaderStyle CssClass="gridtitle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="operator" HeaderText="创建人" ReadOnly="True">
                                        <HeaderStyle CssClass="gridtitle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="request_time" HeaderText="派单时间" ReadOnly="True">
                                        <HeaderStyle CssClass="gridtitle"></HeaderStyle>
                                        <ItemStyle Width="120px"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="target_sector" HeaderText="处理部门" ReadOnly="True">
                                        <HeaderStyle CssClass="gridtitle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="response_time" HeaderText="回复时间" ReadOnly="True">
                                        <HeaderStyle CssClass="gridtitle"></HeaderStyle>
                                        <ItemStyle Width="120px"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="process_time" HeaderText="处理时长" ReadOnly="True">
                                        <HeaderStyle CssClass="gridtitle"></HeaderStyle>
                                        <ItemStyle Width="60px"></ItemStyle>
                                    </asp:BoundField>
                                </Columns>
                            </asp:GridView>
                            <br />
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <script type="text/javascript">
            document.getElementById("gv").style.width = document.documentElement.clientWidth - 50;
        </script>
        <div style="border: solid 1px #9fd6ff; background-color: #d4f1f9; border-bottom: none;">
            <table style="width: 100%; cursor: pointer;" onclick="ShowDiv3();">
                <tr>
                    <td style="height: 20px;">
                        &nbsp;&nbsp;<img alt="" align="absmiddle" src="../images/181.gif" />&nbsp; 工单存在的问题
                    </td>
                </tr>
            </table>
        </div>
        <div id="div3" style="border: solid 1px #9fd6ff; background-color: #f0f8ff; display: block;">
            <table width="100%">
                <tr>
                    <td style="width: 10px;">
                    </td>
                    <td>
                        <div style="border: solid 0px #9fd6ff; overflow: auto; width: 100%">
                            <br />
                            <img align="absmiddle" src="../images/drop-add.gif" /><a href="#" id="A1" onclick="ShowPopup(this,3,'');"><span
                                style="border: 1px; border-bottom: solid 1px #008000">新增工单问题</span></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <img align="absmiddle" src="../images/Flag.gif" width="20px" height="20px" /><asp:LinkButton
                                ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">刷新</asp:LinkButton>
                            <br />
                            <br />
                            <asp:DataList ID="DataList1" runat="server" Width="710px">
                                <ItemTemplate>
                                    <div style="border: solid 1px #9fd6ff; border-bottom: none; background-color: #e4e6ed;
                                        font-family: Arial">
                                        <table width="100%">
                                            <tr>
                                                <td>
                                                    问题类型：<%#Eval("exception_type")%>
                                                </td>
                                                <td style="width: 100px;">
                                                    创建人：<%#Eval("remark")%>
                                                </td>
                                                <td style="width: 180px;">
                                                    创建时间：<%#Eval("create_time")%>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div style="border: solid 1px #9fd6ff; font-family: Arial">
                                        <table width="100%">
                                            <tr>
                                                <td>
                                                    <%#Eval("exception").ToString().Replace(" ", "&nbsp;").Replace("\r\n", "<br />")%>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </ItemTemplate>
                            </asp:DataList>
                            <br />
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
